package org.example.winter.bean;

import org.example.winter.AutoInject;
import org.example.winter.Component;

/**
 * @author YHG
 * @date 2020/8/28 10:11
 */
@Component
public class BeanA {

    @AutoInject
    private BeanB beanB;

    public void who() {
        System.out.println("BeanA");
    }

    public void depend() {
        beanB.who();
    }

}
